package com.alinesno.cloud.portal.auto.task;
import java.util.Date;
 
/**
 * 任务信息
 * @author WeiXiaoJin
 * @since 2019年11月22日 上午8:13:49
 */
public class TaskInfo {
    private String taskId;
    private TaskStatusEnum status;
    private Date startTime;
    private Date endTime;
    private String totalTime;
 
    public TaskStatusEnum getStatus() {
        return status;
    }
 
    public void setStatus(TaskStatusEnum status) {
        this.status = status;
    }
 
    public void setTotalTime(String totalTime) {
        this.totalTime = totalTime;
    }
 
    public String getTaskId() {
        return taskId;
    }
 
    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }
 
    public Date getStartTime() {
        return startTime;
    }
 
    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }
 
    public Date getEndTime() {
        return endTime;
    }
 
    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }
 
    public String getTotalTime() {
        return totalTime;
    }
 
    public void setTotalTime() {
        this.totalTime = (this.endTime.getTime() - this.startTime.getTime()) + "ms";
    }
}